package cn.lyjuan.first.netty.demo._5_netty_heartbeat.msg.reader.impl;

import cn.lyjuan.first.netty._4_netty_serialize.msg.reader.impl.AbstractReader;
import cn.lyjuan.first.netty.demo._5_netty_heartbeat.cst.HeartbeatConst;
import io.netty.buffer.ByteBuf;

public class HeartReaderImpl extends AbstractReader
{
    @Override
    public String head()
    {
        return HeartbeatConst.HEAD_HEART;
    }

    @Override
    public int dataLength()
    {
        return 0;
    }

    @Override
    public String read(ByteBuf buf)
    {
        // 心跳包无数据
        return "";
    }
}
